<template>
  <div>
    <el-card shadow="never" class="mb-20">
      <div slot="header" class="clearfix">
        <span>基础信息</span>
      </div>
      <el-form ref="form" :model="form" label-width="120px">
        <el-form-item label="招标项目编号">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="项目名称">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="采购项目编号">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="项目类型">
          <el-radio-group v-model="form.type">
            <el-radio label="工程类" name="type"></el-radio>
            <el-radio label="工物资备件" name="type"></el-radio>
            <el-radio label="服务类" name="type"></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="工程分类">
          <el-checkbox-group v-model="form.type">
            <el-checkbox
              label="办公用品/低值耗材/五金工具"
              name="type"
            ></el-checkbox>
            <el-checkbox
              label="管材/管件/工器具/机械及通用材料"
              name="type"
            ></el-checkbox>
            <el-checkbox
              label="大型设备/原材料/大宗物资/工程服务"
              name="type"
            ></el-checkbox>
          </el-checkbox-group>
        </el-form-item>

        <el-form-item label="预算总价">
          <el-input v-model="form.desc" placeholder="元"></el-input>
        </el-form-item>
        <el-form-item label="采购单位">
          <el-select v-model="form.purchaseCom"></el-select>
        </el-form-item>
      </el-form>
    </el-card>

    <el-card shadow="never" class="mb-20">
      <div slot="header" class="clearfix">
        <span>物料明细</span>
      </div>
      <el-table :data="list" border>
        <el-table-column
          label="序号"
          type="index"
          width="60"
          align="center"
        ></el-table-column>
        <el-table-column label="物料编码"></el-table-column>
        <el-table-column label="物料名称"></el-table-column>
        <el-table-column label="规格型号"></el-table-column>
        <el-table-column label="采购数量"></el-table-column>
        <el-table-column label="计量单位"></el-table-column>
        <el-table-column label="预算单价"></el-table-column>
        <el-table-column label="期望交货日期" width="150"></el-table-column>
        <el-table-column label="使用部门"></el-table-column>
        <el-table-column label="联系人"></el-table-column>
        <el-table-column label="联系电话"></el-table-column>
        <el-table-column label="操作">
          <template>
            <el-button type="danger" icon="el-icon-delete">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
        purchaseCom: "",
      },
      list: [],
    };
  },
};
</script>

<style lang="scss" scoped>
</style>